package com.woniu.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.*;

import java.util.Date;

/**
 * @author wsp
 * @version 1.0
 * @description: 合同实体类
 * @date 2022/9/24 10:36
 */
@Setter
@Getter
@ToString
@NoArgsConstructor
@AllArgsConstructor
public class CreContract extends BaseEntity {
    private static final long serialVersionUID = -3433173302440126015L;
    /*  */
    private Integer id;

    /*合同编号 */
    @Excel(name = "合同编号")
    private String contractNumber;
    @Excel(name = "订单id")
    /*订单编号 */
    private Integer orderId;
    @Excel(name = "用户id")
    /*用户编号 */
    private Integer userId;
    /*合同名 */
    @Excel(name = "合同名")
    private String contractName;
    /*发起人 */
    @Excel(name = "发起人")
    private String initiator;
    /*发起人电话 */
    @Excel(name = "发起人电话")
    private String initiatorPhone;
    /*完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date completionTime;
    /*合同来源 */
    @Excel(name = "合同来源")
    private String contractSource;
    /*合同状态 */
    @Excel(name = "合同状态")
    private String contractStatus;


    /*合同创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "合同创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    private CreOrder creOrder;
    private CreProduct creProduct;
}
